import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import {resolve} from 'path'
const customerElements = [
  "chat-message",
  'chat-message-panel',
  'chat-opt-panel',
  'chat-tip',
  'msg-tip',
  'reference-item'
]

export default defineConfig({
    plugins: [vue({
        template: {
          compilerOptions: {
            isCustomElement: tag => customerElements.some(item => item == tag)
          }
        }
    })],
    resolve: {
        alias: {
            '@': resolve(__dirname, 'src'),
            '~': resolve(__dirname)
        },
    },
    server: {
        host: '0.0.0.0',
        port: 3206,
        open: true
    },
})
